#include <TraffEduObject.h>
Inheritance diagram for TraffEduObject:

Public Member Functions | |
| virtual void | draw (osg::ref_ptr< osg::Group > root, int animationFlag=-1)=0 |
| void | addTree (osg::ref_ptr< osg::Group > root, int animationFlag=-1) |
| osg::PositionAttitudeTransform * | getPAT () |
| void | setScale (float x, float y, float z) |
| void | setPosition (float x, float y, float z) |
| void | setRotate (float x, float y, float z, float axis) |
| osg::Vec3d | getScale () |
| osg::Vec3d | getPosition () |
| osg::Quat | getRotate () |
| char | getCondition () |
| void | setCondition (char chr) |
| int | getObjectId () |
| void | setObjectId () |
| int | getIsBeforeCreated () |
| void | setModelPath (string str) |
| string | getModelPath () |
| void | resetModelPath (string str) |
| void | hide (osg::ref_ptr< osg::Group > root) |
| void | display (osg::ref_ptr< osg::Group > root, int animationFlag=-1) |
| void | setObjectType (ObjectType type) |
| ObjectType | getObjectType () |
| void | setModelScale (float scale) |
| float | getModelScale () |
| double | getm_drotz () |
| osg::ref_ptr< osg::Node > | returnNode () |
| osg::ref_ptr< osg::Node > | returnNode (int i) |
| osg::ref_ptr< osg::PositionAttitudeTransform > | getObjectPAT () |
| void | setInAnimation (int i) |
| int | objectPATvectorSize () |
| void | setIsBeforeCreated (int flag) |
| vector< vehiclePAT * > & | getObjectPATvector () |
| void | resetObjectId () |
| osg::ref_ptr< osg::Group > | getObjectGroup () |
| TraffEduObject () | |
| TraffEduObject (string modelpath, float scalevalue) | |
| ~TraffEduObject () | |
| int | addObjectPAT (int i) |
| int | deleteObjectPAT (int i) |
| osg::ref_ptr< osg::PositionAttitudeTransform > | reloadObjectPAT () |
| void | setAsPhysicalVehicle () |
| bool | isPhysicalVehicle () |
| void | setCameraFollow () |
| bool | isCameraFollow () |
| void | resetCameraFollow () |
| void | undoPhysicalVehicle () |
Protected Member Functions | |
| void | sortObjectPATvector () |
| int | returnIndex (int) |
Protected Attributes | |
| ObjectType | type |
| int | objectId |
| int | viewMode |
| string | modelPath |
| osg::ref_ptr< osg::PositionAttitudeTransform > | objectPAT |
| vector< vehiclePAT * > | objectPATvector |
| float | modelScale |
| char | condition |
| int | isBeforeCreated |
| int | inAnimation |
| double | m_drotz |
| int | cameraFollow |
| osg::ref_ptr< osg::Group > | objectGroup |
| osg::ref_ptr< osg::Geometry > | objectGeometry |
| osg::ref_ptr< osg::Geode > | objectGeode |
| osg::ref_ptr< osg::Node > | node |
| int | physicalVehicle |
Definition at line 18 of file TraffEduObject.h.
|
|
TraffEduObject constructor Definition at line 11 of file TraffEduObject.cpp. References cameraFollow, condition, isBeforeCreated, m_drotz, objectGeode, objectGeometry, objectGroup, objectPAT, physicalVehicle, and viewMode. |
|
||||||||||||
|
TraffEduObject constructor
Definition at line 34 of file TraffEduObject.cpp. References cameraFollow, condition, isBeforeCreated, objectGeode, objectGeometry, objectGroup, objectPAT, physicalVehicle, setModelPath(), setModelScale(), and viewMode. |
|
|
TraffEduObject destructor Definition at line 57 of file TraffEduObject.cpp. |
|
|
addObjectPAT
Definition at line 336 of file TraffEduObject.cpp. References vehiclePATstruct::frameID, OSGWindows::getFrames(), objectGeode, objectGroup, objectPAT, vehiclePATstruct::objectPAT, objectPATvector, osgwind, returnIndex(), OSGWindows::returnIndex(), OSGWindows::sizeOfFrames(), sortObjectPATvector(), type, and VEHICLE. |
|
||||||||||||
|
Definition at line 62 of file TraffEduObject.cpp. References OSGWindows::getCurrentFrameId(), objectPAT, objectPATvector, osgwind, OSGWindows::returnIndex(), type, and VEHICLE. Referenced by Wheel::draw(), Vehicle::draw(), TrafficSign::draw(), TrafficLight::draw(), Path::draw(), and EnvironmentObject::draw(). |
|
|
deleteObjectPAT
Definition at line 375 of file TraffEduObject.cpp. References OSGWindows::getConstantRoot(), objectPAT, objectPATvector, osgwind, type, and VEHICLE. |
|
||||||||||||
|
Inserts the object to the root if it is hidden.
Definition at line 216 of file TraffEduObject.cpp. References OSGWindows::getCurrentFrameId(), objectPAT, objectPATvector, osgwind, OSGWindows::returnIndex(), type, VEHICLE, and viewMode. Referenced by Vehicle::displayPath(). |
|
||||||||||||
|
Implemented in EnvironmentObject, Path, TrafficLight, TrafficSign, Vehicle, and Wheel. |
|
|
Definition at line 286 of file TraffEduObject.cpp. References condition. |
|
|
Definition at line 307 of file TraffEduObject.cpp. References isBeforeCreated. Referenced by OSGWindows::doAddGeode(). |
|
|
Definition at line 224 of file TraffEduObject.h. References m_drotz. |
|
|
Definition at line 250 of file TraffEduObject.cpp. References modelPath. |
|
|
Definition at line 276 of file TraffEduObject.cpp. References modelScale. |
|
|
Definition at line 270 of file TraffEduObject.h. References objectGroup. Referenced by CommandInsertEnvObj::CommandInsertEnvObj(), CommandInsertTrafficLight::CommandInsertTrafficLight(), CommandInsertTrafficSign::CommandInsertTrafficSign(), CommandInsertVehicle::CommandInsertVehicle(), and CommandPaste::CommandPaste(). |
|
|
Definition at line 291 of file TraffEduObject.cpp. References objectId. Referenced by OSGWindows::doAddGeode(), OSGWindows::doDeleteGeode(), and OSGWindows::dropUnselectedObject(). |
|
|
Definition at line 303 of file TraffEduObject.cpp. References objectPAT. Referenced by CarPhysics::odeDraw(), OtherPhysicalObjects::setCollusion(), and OtherPhysicalObjects::update(). |
|
|
Definition at line 431 of file TraffEduObject.cpp. References objectPATvector. Referenced by createAnimationPath(), AnimationWindow::createControlPoints(), and CarPhysics::mySetPosition(). |
|
|
Definition at line 268 of file TraffEduObject.cpp. References type. Referenced by AnimationWindow::addOtherPhysicalObject(), OSGWindows::dropUnselectedObject(), and OtherPhysicalObjects::update(). |
|
|
Definition at line 180 of file TraffEduObject.cpp. References OSGWindows::getCurrentFrameId(), objectPAT, objectPATvector, osgwind, OSGWindows::returnIndex(), type, and VEHICLE. Referenced by OSGEventHandler::drag(). |
|
|
Definition at line 151 of file TraffEduObject.cpp. References OSGWindows::getCurrentFrameId(), objectPAT, objectPATvector, osgwind, OSGWindows::returnIndex(), type, and VEHICLE. |
|
|
Definition at line 165 of file TraffEduObject.cpp. References OSGWindows::getCurrentFrameId(), objectPAT, objectPATvector, osgwind, OSGWindows::returnIndex(), type, and VEHICLE. |
|
|
Definition at line 137 of file TraffEduObject.cpp. References OSGWindows::getCurrentFrameId(), objectPAT, objectPATvector, osgwind, OSGWindows::returnIndex(), type, and VEHICLE. Referenced by createAnimationPath(). |
|
|
hide function
Definition at line 194 of file TraffEduObject.cpp. References objectPAT, objectPATvector, type, VEHICLE, and viewMode. Referenced by Vehicle::hidePath(). |
|
|
isCameraFollow
Definition at line 458 of file TraffEduObject.cpp. References cameraFollow. |
|
|
Definition at line 438 of file TraffEduObject.cpp. References physicalVehicle. |
|
|
Definition at line 428 of file TraffEduObject.cpp. References objectPATvector. Referenced by AnimationWindow::createControlPoints(). |
|
|
Definition at line 407 of file TraffEduObject.cpp. References objectPAT, objectPATvector, and sortObjectPATvector(). |
|
|
resetCameraFollow sets the bool variable cameraFollow to 0. Definition at line 461 of file TraffEduObject.cpp. References cameraFollow. Referenced by AnimationWindow::exit(). |
|
|
setModelPath function
Definition at line 311 of file TraffEduObject.cpp. References modelPath, and setModelPath(). Referenced by Vehicle::reload(), and Vehicle::setWheels(). |
|
|
sets objectId to 0. Definition at line 442 of file TraffEduObject.cpp. References ObjectIDs. |
|
|
Definition at line 446 of file TraffEduObject.cpp. References objectPATvector. Referenced by addObjectPAT(). |
|
|
Definition at line 259 of file TraffEduObject.cpp. References node, and CarModels::returnModel(). |
|
|
Definition at line 254 of file TraffEduObject.cpp. References modelPath, and node. Referenced by Wheel::draw(), Vehicle::draw(), EnvironmentObject::draw(), and Vehicle::reload(). |
|
|
sets the variable that determines whether the vehicle needs a corresponding physical vehicle Definition at line 434 of file TraffEduObject.cpp. References physicalVehicle, type, and VEHICLE. |
|
|
SetCameraFollow sets the bool variable cameraFollow to 1. Definition at line 455 of file TraffEduObject.cpp. References cameraFollow. |
|
|
Definition at line 280 of file TraffEduObject.cpp. References condition. |
|
|
Definition at line 420 of file TraffEduObject.cpp. References inAnimation. Referenced by AnimationWindow::exit(). |
|
|
Definition at line 249 of file TraffEduObject.h. References isBeforeCreated. |
|
|
Definition at line 245 of file TraffEduObject.cpp. References modelPath. Referenced by resetModelPath(), Vehicle::setWheels(), and TraffEduObject(). |
|
|
Sets the scale factor of the model
Definition at line 272 of file TraffEduObject.cpp. References modelScale. Referenced by Vehicle::setWheels(), and TraffEduObject(). |
|
|
sets the id of the objects Definition at line 296 of file TraffEduObject.cpp. References objectId, and ObjectIDs. Referenced by EnvironmentObject::EnvironmentObject(), TrafficLight::TrafficLight(), and TrafficSign::TrafficSign(). |
|
|
sets the type of the object to the objectType field
Definition at line 264 of file TraffEduObject.cpp. References type. Referenced by EnvironmentObject::EnvironmentObject(), TrafficLight::TrafficLight(), TrafficSign::TrafficSign(), Vehicle::Vehicle(), and Wheel::Wheel(). |
|
||||||||||||||||
|
Definition at line 107 of file TraffEduObject.cpp. References OSGWindows::getCurrentFrameId(), objectPAT, objectPATvector, osgwind, OSGWindows::returnIndex(), type, and VEHICLE. Referenced by CommandInsertEnvObj::CommandInsertEnvObj(), CommandInsertTrafficLight::CommandInsertTrafficLight(), CommandInsertTrafficSign::CommandInsertTrafficSign(), CommandInsertVehicle::CommandInsertVehicle(), and CommandPaste::CommandPaste(). |
|
||||||||||||||||||||
|
Definition at line 89 of file TraffEduObject.cpp. References OSGWindows::getCurrentFrameId(), m_drotz, objectPAT, objectPATvector, osgwind, OSGWindows::returnIndex(), type, and VEHICLE. |
|
||||||||||||||||
|
Definition at line 122 of file TraffEduObject.cpp. References OSGWindows::getCurrentFrameId(), objectPAT, objectPATvector, osgwind, OSGWindows::returnIndex(), type, and VEHICLE. Referenced by CommandInsertTrafficLight::CommandInsertTrafficLight(), CommandInsertTrafficSign::CommandInsertTrafficSign(), CommandPaste::CommandPaste(), Wheel::draw(), Vehicle::draw(), EnvironmentObject::draw(), and Vehicle::reload(). |
|
|
sorts the elements in the PAT vector according to the frame numbers. Definition at line 390 of file TraffEduObject.cpp. References objectPATvector. Referenced by addObjectPAT(), and reloadObjectPAT(). |
|
|
undoPhysicalVehicle sets the bool variable physicalVehicle to 0. Definition at line 464 of file TraffEduObject.cpp. References physicalVehicle. Referenced by AnimationWindow::exit(). |
|
|
variable that keeps the boolean value for whether the camera will follow it or not. Definition at line 78 of file TraffEduObject.h. Referenced by isCameraFollow(), resetCameraFollow(), setCameraFollow(), and TraffEduObject(). |
|
|
variable that keeps the condition of the object. Definition at line 57 of file TraffEduObject.h. Referenced by getCondition(), setCondition(), and TraffEduObject(). |
|
|
variable that keeps the boolean value for whether the object is in animation or not. Definition at line 68 of file TraffEduObject.h. Referenced by setInAnimation(). |
|
|
variable that keeps the boolean value of whet it is drawn or not. Definition at line 62 of file TraffEduObject.h. Referenced by Vehicle::draw(), TrafficSign::draw(), EnvironmentObject::draw(), getIsBeforeCreated(), setIsBeforeCreated(), and TraffEduObject(). |
|
|
variable that keeps the rotation angle in z coordinates of the object. Definition at line 73 of file TraffEduObject.h. Referenced by getm_drotz(), setRotate(), and TraffEduObject(). |
|
|
variable that keeps the path of the model of the object. Definition at line 37 of file TraffEduObject.h. Referenced by Vehicle::draw(), TrafficSign::draw(), getModelPath(), resetModelPath(), returnNode(), setModelPath(), Vehicle::setWheels(), and TrafficSign::TrafficSign(). |
|
|
variable that keeps the scale factor of the object. Definition at line 52 of file TraffEduObject.h. Referenced by Wheel::draw(), Vehicle::draw(), EnvironmentObject::draw(), getModelScale(), Vehicle::reload(), setModelScale(), and Vehicle::setWheels(). |
|
|
Definition at line 262 of file TraffEduObject.h. Referenced by returnNode(). |
|
|
Definition at line 261 of file TraffEduObject.h. Referenced by addObjectPAT(), TraffEduObject(), and Vehicle::Vehicle(). |
|
|
Definition at line 260 of file TraffEduObject.h. Referenced by TraffEduObject(). |
|
|
|
variable that keeps the id of the object Definition at line 27 of file TraffEduObject.h. Referenced by getObjectId(), and setObjectId(). |
|
|
variable that keeps the PositionAttitudeTransform of the model of the object. Definition at line 42 of file TraffEduObject.h. Referenced by addObjectPAT(), addTree(), deleteObjectPAT(), display(), Path::draw(), getObjectPAT(), getPAT(), getPosition(), getRotate(), getScale(), hide(), Vehicle::reload(), reloadObjectPAT(), setPosition(), setRotate(), setScale(), TraffEduObject(), and Vehicle::Vehicle(). |
|
|
variable that keeps the vector of PositionAttitudeTransform of the model of the object. Definition at line 47 of file TraffEduObject.h. Referenced by addObjectPAT(), addTree(), deleteObjectPAT(), display(), getObjectPATvector(), getPAT(), getPosition(), getRotate(), getScale(), hide(), objectPATvectorSize(), reloadObjectPAT(), returnIndex(), setPosition(), setRotate(), setScale(), sortObjectPATvector(), and Vehicle::Vehicle(). |
|
|
Definition at line 267 of file TraffEduObject.h. Referenced by isPhysicalVehicle(), setAsPhysicalVehicle(), TraffEduObject(), and undoPhysicalVehicle(). |
|
|
variable that keeps the type of the object Definition at line 23 of file TraffEduObject.h. Referenced by addObjectPAT(), addTree(), deleteObjectPAT(), display(), getObjectType(), getPAT(), getPosition(), getRotate(), getScale(), hide(), setAsPhysicalVehicle(), setObjectType(), setPosition(), setRotate(), and setScale(). |
|
|
variable that keeps the viewMode of the object; hide or display property. Definition at line 32 of file TraffEduObject.h. Referenced by display(), Vehicle::draw(), TrafficSign::draw(), EnvironmentObject::draw(), hide(), and TraffEduObject(). |
1.4.6-NO